package cn.lizemin.command.version1.entity;

import cn.lizemin.command.version1.entity.device.Device;

/**
 * @author lzm
 * @version 1.0
 * @description: 键盘指令
 * @date 2022/5/17 11:10
 */
public class KeyboardCommand implements Command {

    private Device device;

    public KeyboardCommand(Device device) {
        this.device = device;
    }

    @Override
    public void exe() {
        device.on();
    }

    @Override
    public void unexe() {
        device.off();
    }
}
